<?php

class CHCTitle extends AbstractHCObject
{
    public function setTitle($psString='')
    {
        if (CSDebug::assertString($psString)) return false;
        
        $this->setParam('text', $psString);
    }
    
    
    /**
     * Alias of setTitle
     * 
     * @param String $psString
     */
    public function setText($psString)
    {
        $this->setTitle($psString);
    }
    
    
    /**
     * CSS styles for the title. Exact positioning of the title 
     * can be achieved by changing the margin property, 
     * or by adding position: "absolute" and left and top properties. 
     * Defaults to:
     * 
     * array
     * (
     * 		textAlign: 'center',
     * 		color: '#3E576F',
     * 		font: '16px "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',
     * 		margin: '10px 0 0 0'
     * );
     * 
     * @param Array $pasArray
     */
    public function setStyle($pasArray)
    {
      if (CSDebug::assertArray($pasArray)) return false;

      $this->setParam('style', $pasArray);
    }
}

?>